package main

import (
	"creackpty/random"
	"creackpty/shell"
	"creackpty/simple"
	"creackpty/withoutpty"
	"flag"
	"log"
)

var dir string

func main() {
	flag.StringVar(&dir, "dir", "", "要运行的目录")
	flag.Parse()

	if dir == "simple" {
		simple.Run()
	} else if dir == "random" {
		random.Run()
	} else if dir == "shell" {
		shell.Run()
	} else if dir == "withoutpty" {
		withoutpty.Run()
	} else {
		log.Fatalf("暂未配置目标目录{%s}的可执行程序，请配置!!!", dir)
	}
}
